package com.shamar.blog.entity;

import lombok.Data;

import java.util.Date;

/**
 * @author fangxiaoming
 * @update 2020-07-21 20:14
 */
@Data
public class UserEmail {
    private Integer id;

    public UserEmail(String code) {
        this.code = code;
    }

    public UserEmail() {
    }

    @Override
    public String toString() {
        return "UserEmail{" +
                "id=" + id +
                ", code='" + code + '\'' +
                ", email='" + email + '\'' +
                ", sendType='" + sendType + '\'' +
                ", sendTime=" + sendTime +
                '}';
    }

    private String code;

    private String email;

    private String sendType;

    private Date sendTime;

    public void setCode(String code) {
        this.code = code == null ? null : code.trim();
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public void setSendType(String sendType) {
        this.sendType = sendType == null ? null : sendType.trim();
    }
}